import { INIT_DATA } from './mutations-types.js'
export default {
    state: {
        list: [],
    },
    getters: {
        defaultPath(state) {
            return state.list.filter(v => {
                return v.isDefault == 1;
            })
        },
    },
    mutations: {
        [INIT_DATA](state, arrPath) {
            state.list = arrPath;
            state.list.forEach(v => {
                return v.isDefault = v.isDefault == 1 ? true : false;

            });
        },
  
        
    }
}